package com.shengwei.truck.driver.bean;
/**
 * 我的“车辆信息”接口返回的JSON对象
 */
public class JsonCar {
    public String typeId;  //车型ID
    public String id;      //同typeId,代表车型ID，加这个字段只是为了让这个类，同时兼容2个后端接口
    public String name;     //汽车名称（唯一，可看作型号）
    public String axleNum;  //车轴数量
    public String brand;     //车辆品牌
    public String capacity;   //车载重量
    public String maker;     //生产厂家
    public String mepFlag;   //国标等级，车辆环保标识
    public String typeCode;  //车辆类型
    public String plateNumber;    //车牌号
    public String serviceLife; //使用年限
    public String etcNum; //etc号码
    public String unit;
    public String inspect; //年检信息
    public int etcNumHave; //0 没有ETC, 1有ETC

    public int getEtcNumHave() {
        return etcNumHave;
    }

    public void setEtcNumHave(int etcNumHave) {
        this.etcNumHave = etcNumHave;
    }

    public String getInspect() {
        return inspect;
    }

    public void setInspect(String inspect) {
        this.inspect = inspect;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getId() {
        return id != null ? id:typeId ;
    }

    public void setId(String id) {
        this.id = id;
        this.typeId = id;
    }

    public String getTypeId() {
         return typeId != null ? typeId:id;
    }

    public void setTypeId(String typeId) {
        this.id = typeId;
        this.typeId = typeId;
    }

    public String getPlateNumber() {
        return plateNumber;
    }

    public void setPlateNumber(String plateNumber) {
        this.plateNumber = plateNumber;
    }

    public String getServiceLife() {
        return serviceLife;
    }

    public void setServiceLife(String serviceLife) {
        this.serviceLife = serviceLife;
    }

    public String getAxleNum() {
        return axleNum;
    }
    public void setAxleNum(String axleNum) {
        this.axleNum = axleNum;
    }
    public String getBrand() {
        return brand;
    }
    public void setBrand(String brand) {
        this.brand = brand;
    }
    public String getCapacity() {
        return capacity;
    }
    public void setCapacity(String capacity) {
        this.capacity = capacity;
    }
    public String getMaker() {
        return maker;
    }
    public void setMaker(String maker) {
        this.maker = maker;
    }
    public String getMepFlag() {
        return mepFlag;
    }
    public void setMepFlag(String mepFlag) {
        this.mepFlag = mepFlag;
    }
    public String getTypeCode() {
        return typeCode;
    }
    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    public String getEtcNum() {
        return etcNum;
    }
    public void setEtcNum(String etcNum) {
        this.etcNum = etcNum;
    }
}
